﻿@page "/daily/house"
@namespace YwhWeb.Pages.Daily


<GridContent>
    <div class="main__b__2">
        <div class="leftMenu">
            <Menu 
                Mode="MenuMode.Inline" 
                SelectedKeys="new []{_selectKey}" 
                OnMenuItemClicked="SelectKey">
                @foreach (var item in _menuMap)
                {
                    <MenuItem Key="@item.Key">@item.Value</MenuItem>
                }
            </Menu>
        </div>
        <div class="right__b__0">
            <div class="title">@_menuMap[_selectKey]</div>
            @switch (_selectKey)
            {
                case "room":
                     <RoomView />
                    break;
                case "unit":
                    <UnitView />
                    break;
                case "building":
                    <BuildingView />
                    break;
                case "phase":
                    <PhaseView />
                    break;
            }
        </div>
    </div>
</GridContent>